package com.xysoft.model;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

@Entity
public class Organization extends DataEntityImpl {
	private String name;
	private String remark;
	private String keyChar;
	private Organization parent;
	private int number;
	private String shortName;
	private boolean enabled;
	private SystemType systemType;
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "parentID")
	public Organization getParent() {
		return parent;
	}
	public void setParent(Organization parent) {
		this.parent = parent;
	}
	public String getKeyChar() {
		return keyChar;
	}
	public void setKeyChar(String keyChar) {
		this.keyChar = keyChar;
	}
	public int getNumber() {
		return number;
	}
	public void setNumber(int number) {
		this.number = number;
	}
	public String getShortName() {
		return shortName;
	}
	public void setShortName(String shortName) {
		this.shortName = shortName;
	}
	public boolean isEnabled() {
		return enabled;
	}
	public void setEnabled(boolean enabled) {
		this.enabled = enabled;
	}
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "systemType")
	public SystemType getSystemType() {
		return systemType;
	}
	public void setSystemType(SystemType systemType) {
		this.systemType = systemType;
	}
}
